package com.usb.serial.device.retrofit;

import io.reactivex.rxjava3.core.Observable;

import okhttp3.ResponseBody;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface ApiService {

    //这个是刷卡的接口
    @FormUrlEncoded
    @POST("/api/appData")
    Observable<ResponseBody> getData(@Field("idNo") String idNo, @Field("sncode") String sncode);


    //这个是提交的接口
    @FormUrlEncoded
    @POST("/api/addCradData")
    Observable<ResponseBody> submit(@Field("warehouseCode") String warehouseCode,
                                    @Field("status") String status,
                                    @Field("idNo") String idNo,
                                    @Field("sncode") String sncode,
                                    @Field("idStr") String idStr);


}
